<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/11/7
 * Time: 2:40 PM
 */

namespace App\Entities;

class CartItemEntity extends ABaseEntity
{
    public function __construct(CartItemModel $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->model->id;
    }

    /**
     * @param string $val
     */
    public function setAssignDate(string $val)
    {
        $this->model->assign_date = $val;
    }

    /**
     * @return string
     */
    public function getAssignDate()
    {
        return $this->model->assign_date;
    }

    /**
     * @return int
     */
    public function getAssignTime()
    {
        return $this->model->assign_time;
    }

    /**
     * @param int $val
     */
    public function setAssignTime(int $val)
    {
         $this->model->assign_time = $val;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->model->created_at;
    }

    /**
     * @return int
     */
    public function getSquareMetre()
    {
        return $this->model->square_metre;
    }

    /**
     * @param int $num
     */
    public function setSquareMetre(int $num)
    {
         $this->model->square_metre = $num;
    }

    /**
     * @param int $productId
     */
    public function setProductId(int $productId)
    {
        $this->model->product_id = $productId;
    }

    /**
     * @return int
     */
    public function getProductId()
    {
        return $this->model->product_id;
    }

    /**
     * @param int $productSkuId
     */
    public function setProductSkuId(int $productSkuId)
    {
        $this->model->product_sku_id = $productSkuId;
    }

    /**
     * @return int
     */
    public function getProductSkuId()
    {
        return $this->model->product_sku_id;
    }

    /**
     * 用户ID
     * @return int
     */
    public function getUserId()
    {
        return $this->model->user_id;
    }

    /**
     * 用户ID
     * @param int $userId
     */
    public function setUserId(int $userId)
    {
        $this->model->user_id = $userId;
    }

    /**
     * 城市ID
     * @return int
     */
    public function getCityId()
    {
        return $this->model->city_id;
    }

    /**
     * 城市ID
     * @param int $cityId
     */
    public function setCityId(int $cityId)
    {
        $this->model->city_id = $cityId;
    }
}
